<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link href="../../dep/mui/css/mui.css" rel="stylesheet" />
		<link href="../../css/style.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/page/newOrder/newOrder.css" />
		<link rel="stylesheet" href="../../css/page/newOrder/mui.picker.min.css" />
	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-nav">
		    <button class="mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
		    	<span class="mui-icon mui-icon-left-nav"></span>返回
		    </button>
		    <h1 class="mui-title"></h1>
		</header>
		<div class="mui-content" id="mui-content">
			<ul class="mui-table-view"> 
		        <li class="mui-table-view-cell">
		            <a class="mui-navigate-right" href="#">单号<span id="code"></span></a>
		        </li>
		        <li class="mui-table-view-cell">
		            <a class="mui-navigate-right btn" data-options='{"type":"date","beginYear":1980,"endYear":2216}' href="javascript:;">
		            	日期<span class="dateShow createDate"></span>
		            </a>
		        </li>
		        <li class="mui-table-view-cell">
		            <a class="mui-navigate-right btn" data-options='{"type":"date","beginYear":1980,"endYear":2216}' href="javascript:;">
		            	预交日期<span class="dateShow lastDate"></span>
		            </a>
		        </li>
		        <li class="mui-table-view-cell">
		            <a class="mui-navigate-right" href="../chioceClient/chioceClient.html">
		            	客户 <span id="supplier"></span>
		            </a>
		        </li>
		        <li class="mui-table-view-cell">
		            <a class="mui-navigate-right" href="../chioceOther/chioceStaff.html">
		            	销售员<span id="buyer"></span>
		            </a>
		        </li>
		        
	    	</ul>
	    	<div class="product-title">货品信息</div>
	    	<ul class="mui-table-view"  id="goodsListShow"> 
		        <!--选择货品列表-->
		        
		        <li class="mui-table-view-cell" id="lastInfo">
		        	<div class="mui-row mui-text-center">
		            	<div class="mui-col-sm-6 mui-col-xs-6">
		            		<p>数量总计</p>
		            		<p id="allNum"></p>
		            	</div>
		            	<div class="mui-col-sm-6 mui-col-xs-6">
		            		<p>金额合计</p>
		            		<p><span id="allPrice"></span> 元</p>
		            	</div>
		            </div>
		        </li>
		        
		    </ul>
		    <ul class="mui-table-view choice" id="mui-choice"> 
		        <li class="mui-table-view-cell">
		            <a class="mui-navigate-right setParm" href="../chioceProduct/chioceProduct.html">选择货品</a>
		        </li>
		    </ul>
		    <form action="" id="subForm">
			    <ul class="mui-table-view choice"> 
			        <li class="mui-table-view-cell">
			            <div class="mui-input-row">
					        <label class="remarks-title">备注</label>
					        <input type="textarea" class="remarks" placeholder="请输入内容">
					    </div>
			        </li>
			    </ul>
			    <div class="mui-button-row" id="sub-btn">
				    <button type="button" class="mui-btn mui-btn-warning keep-draft" >暂存</button>
				    <button id="btnSubmitExamina" type="button" class="mui-btn mui-btn-primary mui-btn-sub" >提交审核</button>
				    <!--btn-disabled-->
				</div>
			</form>
		</div>
	</body>

</html>
<script src="../../dep/seajs/3.0.0/sea.js"></script>
<script src="../../js/seajs_config.js"></script>
<script>
    seajs.use("../../js/newOrder/newOutstockOrder")
</script>
<script id="goodsList" type="text/html">
	{{each list}}
		<li class="mui-table-view-cell production-list setParm" data-hasId="{{$value.goodsId}}">
			<a href="../newStockDetail/productDetail.html">
	            <p class="clothes-code" data-id="{{$value.goodsId}}" data-unit="{{$value.goodsUnit}}">{{$value.goodsSerial}}</p>
	            <p class="name" data-id="{{$value.goodsId}}" data-img="{{$value.goodsImg}}" data-unit="{{$value.goodsUnit}}">{{$value.goodsName}}</p>
	            <p>
	            	<span class="price">{{$value.goodsPrice}}</span> 元
	            	<span class="mui-icon mui-icon-closeempty"></span>
	            	<span class="goodsNum">{{$value.goodsBuyNum}}</span> 件
	            	<span class="warehouse" data-id="{{$value.goodsWhid}}">{{$value.goodsWhName}}</span>
	            </p>
	        </a>    
	        <span class="mui-icon mui-icon-trash delete-trash"></span>
        </li>
    {{/each}}	
</script>
